home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 11 / 011.d81 / q & a < prev    next >
Encoding:
Text File  |  1985-01-01  |  3.8 KB  |  215 lines

  1.  
  2.         QUESTIONS & ANSWERS
  3.  
  4.  
  5.  
  6.  
  7. Chu 20001
  8.  
  9.  
  10.   I have been using the LOAD statement
  11.  
  12. in a program.  When I run the first
  13.  
  14. program, the second program cannot
  15.  
  16. load completely into my C-64.
  17.  
  18. What is happening?
  19.  
  20.  
  21.  
  22.             THANK YOU SO MUCH !!
  23.  
  24.                  Chu, Yu-Ling
  25.                  800 6th Street N.W.
  26.                  Apt# 1003
  27.                  Washington D.C.
  28.                  20001
  29.  
  30.  
  31.  
  32. >This is a very good question!  A
  33.  large number of C-64 owners do not
  34.  know what is happening.
  35.  
  36.  First of all, when you attempt to
  37.  LOAD a BASIC program from another
  38.  BASIC program, the second program
  39.  MUST be smaller than the first.
  40.  
  41.  To get around this problem you can
  42.  LOAD your programs like LOADSTAR
  43.  does.  Here is how we do it.  First
  44.  we clear the screen, then print the
  45.  messages 'LOAD"name",8' and 'RUN'
  46.  on the screen.  Next we POKE
  47.  carriage returns into the keyboard
  48.  buffer.  Last, we tell the computer
  49.  that there is something in the
  50.  keyboard buffer.  Here is the code
  51.  to acomplish this:
  52.  
  53.  
  54. 5  PRINT"[clr][down 3]LOAD"CHR$(34)
  55.         "filename"chr$(34)",8"
  56. 6  PRINT"[down 4]RUN[home]"
  57. 7  POKE631,13:POKE632,13:POKE198,2:END
  58.  
  59.  
  60. By using this code, you can "chain"
  61.  
  62. many programs together.
  63.  
  64.   *** NOTE ***
  65.     This problem does not arise when
  66.   LOADing such things as machine-
  67.   language files.  These type of files
  68.   LOAD into the address from which
  69.   they were SAVEd.  Therefore, there
  70.   is no problem unless the LOAD
  71.   address of such a program happens to
  72.   be inside of your program.
  73.  
  74.  I hope that this has answered your
  75.  question.  Good luck!
  76.  
  77. - - - - - - - - - - - - - - - - - - -
  78.  
  79. Besser 85302
  80.  
  81.  
  82.   I have some questions that I hope
  83.  
  84. someone can answer:
  85.  
  86.  
  87.   I assume that because you publish
  88.  
  89. names and addresses that it is okay
  90.  
  91. to write to other suscribers?
  92.  
  93.  
  94. >Right!  If someone does not want
  95.  their address in our magazine, we
  96.  do not publish it.  We invite our
  97.  subscribers to write to each other!
  98.  
  99.  
  100.  If I send questions like these, will
  101.  
  102. someone answer them on my disk before
  103.  
  104. sending it back?
  105.  
  106.  
  107.  
  108. >Your questions will not be answered
  109.  on your disk.  We try to answer your
  110.  questions on the next issue of
  111.  LOADSTAR, or to publish them and let
  112.  our subscribers solve each other's
  113.  problems.
  114.  
  115.  
  116.   I assume that because storage is so
  117.  
  118. easy that all back issues are and will
  119.  
  120. be available so one could purchase
  121.  
  122. back issues periodically so as to
  123.  
  124. build a complete library without going
  125.  
  126. to debtor's prison by buying all back
  127.  
  128. issues at once.  Assumption TRUE?
  129.  
  130.  
  131. >Yes!  At present, back issues cost
  132.  $9.95 or $7.95 each if you order six
  133.  or more.
  134.  
  135.  
  136.               THANKS,
  137.  
  138.              Patrick Besser
  139.              5627 W. Eva
  140.              Glendale,Az. 85302
  141.  
  142. - - - - - - - - - - - - - - - - - - -
  143.  
  144. Haltinner 32514
  145.  
  146.  
  147.   How do you erase a diskette With a
  148.  
  149. sequential file on it?  I use:
  150.  
  151.  
  152.           OPEN 15,8,15
  153.  
  154.               then
  155.  
  156.     PRINT#15,"N0:MICHAEL'S.01"
  157.  
  158.  
  159.   This usually works fine on a normal
  160.  
  161. disk but if it has a sequential file
  162.  
  163. on it my disk drive just runs for
  164.  
  165. three minutes and the red led just
  166.  
  167. flashes, and if you list the directory
  168.  
  169. it has not changed. I would appreciate
  170.  
  171. some advice.
  172.  
  173.  
  174. >If you are doing exactly what you
  175.  have written, then it should work.
  176.  The flashing light indicates an
  177.  error, our guess is a read error, on
  178.  the disk.  When "N0:" without an ID
  179.  won't work, then you should include
  180.  an ID in the name.  Instead of the
  181.  period you need a comma.
  182.  
  183.      PRINT#15,"N0:MICHAEL'S,01"
  184.                            ^
  185.                        use a comma
  186.                           here.
  187.  
  188.  
  189.  
  190.  
  191.   While I'm on the subject, how do I
  192.  
  193. erase THESE comments so I may start
  194.  
  195. again when I get this disk back?
  196.  
  197.                       Thanks:
  198.  
  199.                  Michael J Haltinner
  200.  
  201.  
  202. >To start off with a clean slate,
  203.  just type:
  204.  
  205.            OPEN15,8,15
  206.  
  207.       PRINT#15,"S0:COMMENTS"
  208.  
  209.             CLOSE15
  210.  
  211.  That should let you start off clean.
  212.  
  213.  
  214. --------- <end of article> -----------
  215.